package com.app.studyroom.api.model.ssrBooking;

import java.util.List;

public class BookingPageResponse {

    private int code;
    private String message;
    private PageData data;
    private String token;

    // --- 内部类 PageData 用于 data 包裹层 ---
    public static class PageData {
        private List<BookingItem> data;
        private int total;

        public List<BookingItem> getData() {
            return data;
        }

        public void setData(List<BookingItem> data) {
            this.data = data;
        }

        public int getTotal() {
            return total;
        }

        public void setTotal(int total) {
            this.total = total;
        }
    }

    // --- 外层 BookingPageResponse 成员方法 ---
    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public PageData getData() {
        return data;
    }

    public void setData(PageData data) {
        this.data = data;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }
}
